<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body id="body1">

</body>
<script>
    var body2 = document.getElementById('body1');
    console.log(body2);
    console.dir(body2);
    console.log(body1);
    console.dir(body1);
    console.log(typeof(body1));
    console.dir(typeof(body1));
    
</script>

</html>